def solve(nums, target):
    n = len(nums)
    for i in range(n):
        for j in range(i + 1, n):
            if nums[i] + nums[j] == target:
                return [i, j]


if __name__ == "__main__":
    nums = [3, 2, 4]
    target = 6
    print(solve(nums, target))
